import request from "@/utils/request"

//列表查询
export const queryStuApi = (name,degree,clazzId,page,pageSize) => 
  request.get(`/students?name=${name}&degree=${degree}&clazzId=${clazzId}&page=${page}&pageSize=${pageSize}`)

export const addStuApi = (stu) => request.post('/students',stu)

export const dealViolationApi = (id,score) => request.put(`/students/violation/${id}/${score}`)

export const queryStuByIdApi = (id) => request.get(`/students/${id}`)

export const updateStuApi = (stu) => request.put('/students',stu)

export const deleteStuByIdApi = (ids) => request.delete(`/students/${ids}`)